package cn.itsource.ymcc;

import cn.itsource.ymcc.doc.CourseDoc;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",fallbackFactory = CourseFeignClientFallBackFactory.class)
public interface SearchFeignClient {

    @PostMapping("/saveCourse")
   JSONResult saveCourse(@RequestBody CourseDoc doc);

    @PostMapping("/course/deleteCourse")
    JSONResult deleteCourse(@RequestBody Long courseId);



}
